<template>
  <div>
    <!-- 详情页 -->
    <!-- 头部 -->
    <div class="top">
      <p class="title_style">
        <button class="title_btn" @click="goup"><</button>
        <span class="title_text">预约课程</span>
      </p>
      <!-- 教室详情 -->
      <div class="tc_style">
        <div class="tc_img">头像</div>
        <div class="tc_text">
          <p>茂峰岩</p>
          <span>女 15年蕉岭</span>
        </div>
        <div class="tc_btn">
          <button>查看详情</button>
        </div>
      </div>
    </div>
    <!-- 正文 -->
    <div class="center">
      <p>
        <span>

        </span>
        选择时间
        <small>
          (北京时间)
        </small>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  mounted() {
    let id = this.$route.query.id;
    console.log(id);
  },
  methods: {
    goup() {
      this.$router.push("/oto");
    }
  }
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
}
.top {
  width: 100%;
  height: 3.2rem;
  background: linear-gradient(
    0deg,
    rgb(79, 128, 228),
    rgb(89, 154, 241),
    rgb(97, 174, 250),
    rgb(98, 181, 253)
  );
  font-size: 16px;
  box-sizing: border-box;
  padding: 16px;
}
.center {
  width: 100%;
  height: 14rem;
  background: rgb(240, 242, 245);
  font-size: 16px;
  box-sizing: border-box;
  padding: 1px;
  p{
    margin-top: 15px;
    height: 36px;
    line-height: 36px
  }
}
.title_style {
  color: white;
}
.title_btn {
  // height: 19px;
  font-size: 19px;
  background: rgb(97, 174, 250);
  border: none;
  margin-right: 35%;
}
.title_text {
  font-size: 19px;
}
.tc_style {
  margin-top: 9px;
  width: 100%;
  background: white;
  height: 2.2rem;
  position: relative;
  border-radius: 5px;
  box-sizing: border-box;
  padding: 5px 10px 0 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  span {
    color: gray;
  }
}
.tc_img {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid;
  border-radius: 50%;
  margin-right: 7px;
}
.tc_btn {
  margin-left: 25%;
  button {
    width: 2.3rem;
    height: 0.7rem;
    border-radius: 25px;
    font-size: 12px;
    background: white;
    color: #eb5100;
    border: 1px solid #eb6100;
  }
}
</style>